We added special code to sort each row in the overview so that
windows were less likely to cross lines, but the awkward control
flow meant that everything but the last row got sorted.
https://bugzilla.gnome.org/show_bug.cgi?id=707197
row.windows.push(window);
row.fullWidth += width;
} else {
- this._sortRow(row);
break;
}
}
let maxRow;
for (let i = 0; i < numRows; i++) {
let row = rows[i];
+ this._sortRow(row);
+
if (!maxRow || row.fullWidth > maxRow.fullWidth)
maxRow = row;
gridHeight += row.fullHeight;